

<?php
/* @var $this UrusanController */

$this->breadcrumbs=array(
	'Urusan'=>array('/urusan'),
	'Urusan',
);
?>

<script type="text/javascript">
<!--
	function insert(){
		window.open("<?echo Yii::app()->homeUrl?>?r=urusan/insert","_self");
	}
//-->
</script>

<div id="page-wrapper">
<?
$model= new MsUrusan;		
$this->widget('zii.widgets.grid.CGridView', array(
		'dataProvider' => $model->search(),
		'filter' => $model,
		'summaryText' => '<em>data {start} - {end} dari {count} record</em>&nbsp;&nbsp;&nbsp;&nbsp;<button type="button" class="btn btn-outline btn-primary btn-xs" onclick="insert()" >&nbsp;Tambah</button>',
		'htmlOptions' => array('class' => 'grid-view rounded'),
		'columns' => array(
				array(
						'header' => 'KODE',
						'name' => 'kd_urusan',
						'type' => 'raw',
						'value' => 'CHtml::encode($data->kd_urusan)',
						'htmlOptions'=>array('height'=>'36px','width'=>'15%','align'=>'center'),
						'headerHtmlOptions'=>array('height'=>'40px')
				),
				array(
						'header' => 'NAMA URUSAN',
						'name' => 'nm_urusan',
						'type' => 'raw',
						'value' => 'CHtml::link(CHtml::encode($data->nm_urusan))',
						'htmlOptions'=>array('height'=>'36px')
				),
				array(
						'header' => 'HAPUS',
						'class'=>'CButtonColumn',
						'template'=>'{delete}',
					)
		),
	   'pager' => array(
				  'cssFile'=>false,
				  'class'=>'CLinkPager',
				  'firstPageLabel' => '&lt;&lt;',
				  'prevPageLabel' => '&lt;',
				  'nextPageLabel' => '&gt;',
				  'lastPageLabel' => '&gt;&gt;',
				  'header' => '',
			  ),
));

?>


</div>
